#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>

void leap(uint16_t year);

int main()
{
	unsigned int year;
	printf("input a year:");
	scanf("%d", &year);
	leap(year);
	return 0;
}

void leap(uint16_t year)
{
	if(year % 100)
	{
		if(year % 4)printf("It is not a leap year.\n");
		else printf("It is a leap year.\n");
	}
	else
	{
		if(year % 400)printf("It is not a leap year.\n");
		else printf("It is a leap year.\n");
	}
}
